<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
  <meta charset="utf-8" />
  <title>Page Not Found</title>
</head>
<body>
  <script>
    const path = window.location.pathname;

    if (path === "/baidunetdisk") {
      // 博客里用到
      window.location.href = "https://pan.baidu.com/s/12hDXdKdIE4-ggjcS7-88lw?pwd=1234";
    } else if (path === "/bili") {
      // 博客里用到，还有CSDN
      window.location.href = "https://space.bilibili.com/351970900";
    } else if (path === "/tmp/btrfs-forced-readonly-log.txt") {
      // https://lore.kernel.org/all/tencent_0D3574DAB98883D88196B3F24D2D379D7D0A@qq.com/
      window.location.href = "https://chenxiaosong.com/tmp/btrfs/btrfs-forced-readonly-log.txt";
    } else if (path === "/courses/nfs/patches/CVE-2022-24448.html") {
      // https://gitee.com/openeuler/kernel/issues/IB6FR2
      // https://gitee.com/openeuler/kernel/issues/IB6DNK
      window.location.href = "https://chenxiaosong.com/course/kernel/my-patch/CVE-2022-24448.html";
    } else if (path === "/src/nfs/4.19-null-ptr-deref-in-nfs_updatepage.html") {
      // https://gitee.com/openeuler/kernel/issues/IAJ2ZJ
      window.location.href = "https://chenxiaosong.com/course/nfs/issue/4.19-null-ptr-deref-in-nfs_updatepage.html";
    } else if (path === "/linux/chenxiaosong.com.html") {
      // http://tangyouling.com/linux-environment/website-construction.html
      window.location.href = "https://chenxiaosong.com/course/gnu-linux/blog-web.html";
    } else if (path === "/en/nfs/en-null-ptr-deref-in-nfsd4_probe_callback.html") {
      // https://lore.kernel.org/all/64E3DD4D765DEAD1+87aeb2d4-3732-4e57-ada6-098dbf0a7feb@chenxiaosong.com/
      window.location.href = "https://chenxiaosong.com/en/null-ptr-deref-in-nfsd4_probe_callback.html";
    } else if (path === "/course/nfs/openeuler-enfs/openeuler-enfs-null-ptr-deref-in-xprt_switch_get.html") {
      // https://gitee.com/openeuler/kernel/issues/ICN6OQ
      // https://gitee.com/openeuler/kernel/commit/b29f941d7c6454ae39e85a23d8a004f47b274505
      window.location.href = "https://chenxiaosong.com/course/nfs/openeuler-enfs/enfs-null-ptr-deref-in-xprt_switch_get.html";
    } else if (path === "/course/nfs/openeuler-enfs/openeuler-enfs-double-free-of-multipath_client_info.html") {
      // https://gitee.com/openeuler/kernel/issues/ICN6OQ
      // https://gitee.com/openeuler/kernel/commit/d6f01631a69cbca08be0157a09f30a93283c50d4
      window.location.href = "https://chenxiaosong.com/course/nfs/openeuler-enfs/enfs-double-free-of-multipath_client_info.html";
    } else if (path === "/course/nfs/openeuler-enfs/enfs-unstable-path-state.html") {
      // https://gitee.com/openeuler/kernel/issues/ID0G3W
      window.location.href = "https://chenxiaosong.com/course/nfs/openeuler-enfs/enfs-unstable-path-state.html";
    } else if (path === "/smb-test/20251109") {
      // https://lore.kernel.org/all/ea09d478-150f-4d03-be15-5892e5d61e74@chenxiaosong.com/
      // https://lore.kernel.org/all/0976729d-7c4c-4a15-9c01-bbd03e270d7e@chenxiaosong.com/
      window.location.href = "https://chenxiaosong.com/en/smb-test-20251109.html";
    } else if (path === "/en/smb-test/20251113.html") {
      // https://lore.kernel.org/all/20251113133252.145867-1-chenxiaosong.chenxiaosong@linux.dev/
      window.location.href = "https://chenxiaosong.com/en/smb-test-20251113.html";
    } else if (path === "/en/smb-test-20251116.html") {
      // https://lore.kernel.org/all/20251116065213.282598-1-chenxiaosong.chenxiaosong@linux.dev/
      window.location.href = "https://chenxiaosong.com/en/smb-test-20251116.html";
    } else if (path === "/en/smb-test-20251117.html") {
      // https://lore.kernel.org/all/20251117112838.473051-1-chenxiaosong.chenxiaosong@linux.dev/
      window.location.href = "https://chenxiaosong.com/en/smb-test-20251117.html";
    } else if (path === "/en/smb2-change-notify.html") {
      // https://lore.kernel.org/all/a7809257-9125-4e08-80c5-8c7a22b6207b@chenxiaosong.com/
      window.location.href = "https://chenxiaosong.com/en/smb2-change-notify.html";
    } else {
      // 其他路径重定向到主页
      window.location.href = "/";
    }
  </script>
</body>
</html>

